<?php
// ### FETCH CATEGORIES PLUGIN ### //

include('class.categories.php');
$categories = new categories();
$categories->set_page($pageid);
$categories->set_id($article);
$catGroup = $categories->get_catGroups();
?>

<h3>Categories</h3>
<ul class="sumlist_bullit">
    <?php foreach($catGroup as $category) { ?>
    <li>
        <span class="bullit"><span class="<?php print(strtolower($category['category'])); ?>"></span></span>
        <a href="page/201/archive/category/<?php print($category['category']); ?>" title="<?php print($category['category']); ?>"><?php print($category['category']); ?></a> <span class="grey"><?php print($category['count']); ?>
        </span>
    </li>
    <?php } ?>
</ul>

